
#define _CRT_SECURE_NO_WARNINGS 1
class sum
{
public:
    sum()
    {
        ret += i;
        ++i;
    }
    static int getsum()
    {
        return ret;
    }
private:
    static int i;
    static int ret;
};

int sum::i = 1;
int sum::ret = 0;


class Solution {
public:
    int Sum_Solution(int n) {
        new sum[n];
        return sum::getsum();
    }
};